{extend name="admin@public:base" /}
{block name="main-row-content"}
<div class="rows top-button col-sm-12">
     <p>
		<a href="{:url('admin/Database/del')}"  class="btn btn-sm btn-warning ajaxAll" data-icon="fa-trash-o" >
			<i class="ace-icon fa fa-trash-o "></i>
			批量删除
		</a>
	</p>
</div>
<div class="row">
	<div class="col-xs-12">
		<!-- PAGE CONTENT BEGINS -->
		<div class="row">
			<div class="col-xs-12">
				<table id="simple-table" class="table table-striped table-bordered table-hover">
					<thead>
						<tr>
						    <th class="center">
								<label class="pos-rel">
									<input type="checkbox" class="ace checkAll" />
									<span class="lbl"></span>
								</label>
							</th>
							<th>ID</th>
							<th>数据表名</th>
							<th>卷数</th>
							<th class="hidden-480">文件大小</th>
							<th class="hidden-480">文件类型</th>
							<th class="hidden-480">添加时间</th>
							<th>操作</th>
						</tr>
					</thead>

					<tbody>
					  {foreach name="list" item="vo" key="i"}
						<tr>
						    <td class="center">
								<label class="pos-rel">
									<input type="checkbox" class="ace" name="ids[]" value="{$vo.time}"/>
									<span class="lbl"></span>
								</label>
							</td>
							<td>{$i+1}</td>
							<td>{$vo.filename}</td>
							<td>第【{$vo.part}】卷</td>
							<td class="hidden-480">{$vo.size|unit_converter}</td>
							<td class="hidden-480">{$vo.type}</td>
                            <td class="hidden-480">{$vo.time|date="Y-m-d H:i",###}</td>
							<td>
								<div class="hidden-sm hidden-xs btn-group">

									<a class="btn btn-xs btn-white  btn-info margin-left-10 db-import"  data-icon="fa-eye" title="还原数据" href="{:url('admin/Database/import?time='.$vo['time'])}">
										<i class="ace-icon fa 	fa-eye  bigger-120"></i><span>还原数据</span>
									</a>

									<a href="__ROOT__/data/database/{$vo.filename}" download="" data-id="" class="btn btn-xs btn-white btn-warning  margin-left-10 " title="导出文件">
										<i class="ace-icon fa 	fa-download bigger-120"></i>导出文件
									</a>
									<a href="{:url('admin/Database/del')}" data-id="{$vo.time}"  class="btn btn-xs btn-white  btn-danger margin-left-10 ajax_del" title="删除备份">
										<i class="ace-icon fa fa-trash-o bigger-120"></i>删除备份
									</a>
								</div>

								<div class="hidden-md hidden-lg">
									<div class="inline pos-rel">
										<button class="btn btn-minier btn-primary dropdown-toggle" data-toggle="dropdown" data-position="auto">
											<i class="ace-icon fa fa-cog icon-only bigger-110"></i>
										</button>

										<ul class="dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close">
										<li>
												<a  href="{:url('admin/Sys/admin_edit')}" class="tooltip-success" data-rel="tooltip" title="还原数据">
													<span class="green">
														<i class="ace-icon fa fa-pencil-square-o bigger-120"></i>
													</span>
												</a>
											</li>

											<li>
												<a  href="{:url('admin/Sys/admin_edit')}" class="tooltip-success" data-rel="tooltip" title="导出文件">
													<span class="green">
														<i class="ace-icon fa fa-pencil-square-o bigger-120"></i>
													</span>
												</a>
											</li>

											<li>
												<a href="{:url('admin/admin/Database/del')}"  class="tooltip-error ajax_del" data-rel="tooltip" title="删除备份">
													<span class="red">
														<i class="ace-icon fa fa-trash-o bigger-120"></i>
													</span>
												</a>
											</li>
										</ul>
									</div>
								</div>
							</td>
						</tr>
					  {/foreach}
					   
					    
					</tbody>
				</table>
			</div><!-- /.span -->
		</div><!-- /.row -->

		<div class="hr hr-18 dotted hr-double"></div>
	</div><!-- /.col -->
</div><!-- /.row -->
{/block}
   </body>
</html>